function getUrlParam(name) {
    var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)"); //构造一个含有目标参数的正则表达式对象
    var r = window.location.search.substr(1).match(reg);  //匹配目标参数
    if (r != null) return unescape(r[2]);
    return null; //返回参数值
}

function AnchorClick(obj) {
    var pos = $("#" + obj).offset().top;
    $("html,body").animate({scrollTop: pos}, 400);
};
//根据路由跳转到指定模块
getUrlParam('type') && AnchorClick(getUrlParam('type'));


var mySwiper0 = new Swiper('#solution_swiper', {
    loop: true,
    autoplay: 5000,
    pagination: '#solution_swiper .pagination',
    paginationClickable: true,
})

var m_mySwiper0 = new Swiper('#m_solution_swiper', {
    loop: true,
    autoplay: 5000,
    pagination: '#m_solution_swiper .pagination',
    paginationClickable: true,
})

var mySwiper1 = new Swiper('#solution_swiper2', {
    loop: true,
    autoplay: 5000,
    pagination: '#solution_swiper2 .pagination',
    paginationClickable: true,
})
var m_mySwiper1 = new Swiper('#m_solution_swiper2', {
    loop: true,
    autoplay: 5000,
    pagination: '#m_solution_swiper2 .pagination',
    paginationClickable: true,
})

var mySwiper2 = new Swiper('#solution_swiper3', {
    loop: true,
    autoplay: 5000,
    pagination: '#solution_swiper3 .pagination',
    paginationClickable: true,
})
var m_mySwiper2 = new Swiper('#m_solution_swiper3', {
    loop: true,
    autoplay: 5000,
    pagination: '#m_solution_swiper3 .pagination',
    paginationClickable: true,
})

$(".triangle-bottomleft").css('border-right-width', $(window).width() * 0.04)
$(".triangle-topright").css('border-left-width', $(window).width() * 0.04)